package user.controller;

import java.io.PrintWriter;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.view.AbstractView;

public class JSONViewSheet extends AbstractView {

	public JSONViewSheet(){
		super();
		setContentType("text/html;charset=euc-kr");
	}
	@Override
	protected void renderMergedOutputModel(Map<String, Object> model,
			HttpServletRequest arg1, HttpServletResponse response) throws Exception {
		// TODO Auto-generated method stub
		String json=(String)model.get("json");
		response.setContentType("text/html;charset=euc-kr");
		response.setHeader("Cache-Control", "no-cache");
		PrintWriter out=response.getWriter();
		out.write(json);
		out.flush();		
	}
}
